.class public Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;
.super Ljava/lang/Object;
.source "ZMLogUtil.java"


# static fields
.field public static DEBUG:I

.field public static ERROR:I

.field public static INFO:I

.field public static VERBOSE:I

.field public static WARN:I

.field private static isLog:Z

.field private static level:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 7
    const/4 v0, 0x1

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->VERBOSE:I

    .line 8
    const/4 v0, 0x2

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->DEBUG:I

    .line 9
    const/4 v0, 0x3

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->INFO:I

    .line 10
    const/4 v0, 0x4

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->WARN:I

    .line 11
    const/4 v0, 0x5

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->ERROR:I

    .line 12
    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->VERBOSE:I

    sput v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    .line 13
    const/4 v0, 0x0

    sput-boolean v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isLog:Z

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static d(Ljava/lang/String;)V
    .registers 4
    .param p0, "msg"    # Ljava/lang/String;

    .prologue
    .line 26
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->DEBUG:I

    if-gt v0, v1, :cond_24

    .line 27
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 28
    :cond_24
    return-void
.end method

.method public static d(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p0, "tag"    # Ljava/lang/String;
    .param p1, "msg"    # Ljava/lang/String;

    .prologue
    .line 31
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_22

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->DEBUG:I

    if-gt v0, v1, :cond_22

    .line 32
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 33
    :cond_22
    return-void
.end method

.method public static e(Ljava/lang/String;)V
    .registers 4
    .param p0, "msg"    # Ljava/lang/String;

    .prologue
    .line 46
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->ERROR:I

    if-gt v0, v1, :cond_24

    .line 47
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 48
    :cond_24
    return-void
.end method

.method public static e(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p0, "tag"    # Ljava/lang/String;
    .param p1, "msg"    # Ljava/lang/String;

    .prologue
    .line 56
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_22

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->ERROR:I

    if-gt v0, v1, :cond_22

    .line 57
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 58
    :cond_22
    return-void
.end method

.method public static e(Ljava/lang/String;Ljava/lang/Throwable;)V
    .registers 5
    .param p0, "msg"    # Ljava/lang/String;
    .param p1, "tr"    # Ljava/lang/Throwable;

    .prologue
    .line 51
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->ERROR:I

    if-gt v0, v1, :cond_24

    .line 52
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 53
    :cond_24
    return-void
.end method

.method public static i(Ljava/lang/String;)V
    .registers 4
    .param p0, "msg"    # Ljava/lang/String;

    .prologue
    .line 16
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->INFO:I

    if-gt v0, v1, :cond_24

    .line 17
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 18
    :cond_24
    return-void
.end method

.method public static i(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p0, "tag"    # Ljava/lang/String;
    .param p1, "msg"    # Ljava/lang/String;

    .prologue
    .line 21
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_22

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->INFO:I

    if-gt v0, v1, :cond_22

    .line 22
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 23
    :cond_22
    return-void
.end method

.method public static isPrintLog()Z
    .registers 1

    .prologue
    .line 71
    sget-boolean v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isLog:Z

    return v0
.end method

.method public static v(Ljava/lang/String;)V
    .registers 4
    .param p0, "msg"    # Ljava/lang/String;

    .prologue
    .line 61
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->VERBOSE:I

    if-gt v0, v1, :cond_24

    .line 62
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 63
    :cond_24
    return-void
.end method

.method public static v(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p0, "tag"    # Ljava/lang/String;
    .param p1, "msg"    # Ljava/lang/String;

    .prologue
    .line 66
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_22

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->VERBOSE:I

    if-gt v0, v1, :cond_22

    .line 67
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 68
    :cond_22
    return-void
.end method

.method public static w(Ljava/lang/String;)V
    .registers 4
    .param p0, "msg"    # Ljava/lang/String;

    .prologue
    .line 36
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_24

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->WARN:I

    if-gt v0, v1, :cond_24

    .line 37
    const-string v0, "LogUtil"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 38
    :cond_24
    return-void
.end method

.method public static w(Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p0, "tag"    # Ljava/lang/String;
    .param p1, "msg"    # Ljava/lang/String;

    .prologue
    .line 41
    invoke-static {}, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->isPrintLog()Z

    move-result v0

    if-eqz v0, :cond_22

    sget v0, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->level:I

    sget v1, Lcom/zuiapps/sdk/analytics/util/ZMLogUtil;->WARN:I

    if-gt v0, v1, :cond_22

    .line 42
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 43
    :cond_22
    return-void
.end method
